<%
  blue          = "#59abc6"
  grey          = "#cccccc"
  dark_blue     = "#2f738a"
  dark_grey     = "#666666"
  text_color    = "#333333"
  link_color    = blue
  hover_color   = dark_blue
  border_radius = "3px"
%>

<style>
  /* Body */
  body {
    color: <%= text_color %>;
    font-size: 1em;
    font-family: "Helvetica Neue", Helvetica, sans-serif;
  }

  /* Links & Buttons */
  a {
    color: <%= link_color %>;
    text-decoration: none;
  }
  a:hover {
    color: <%= hover_color %>;
  }
  .button {
    cursor: pointer;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    padding: 0;
    border: none;
    background: none;
    color: <%= link_color %>;
  }
  .button:hover {
    color: <%= hover_color %>;
  }

  /* Inputs */
  input {
    font-size: 100%;
    font-family: inherit;
    height: 1.2em;
    border: solid 1px <%= grey %>;
    border-radius: <%= border_radius %>;
    background: #ffffff
    line-height: 1;
    padding-left: 0.5em;
  }

  ::-webkit-input-placeholder, ::-moz-placeholder {
    font-weight: 300;
    font-size: 0.9em;
    color: <%= dark_grey %>;
  }

  /* Header */
  header.header, footer.footer {
    position: fixed;
    left: 0;
    z-index: 99;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
  }
  header.header {
    padding: 0.6em;
    top: 0;
    box-shadow: 0 0.0625em 0.3125em rgba(0, 0, 0, 0.15);
  }
  header.header .logo_link {
    margin-left: 1em;
  }
  header.header .logo_link img {
    height: 45px;
  }
  header.header .back_to_app {
    float: right;
    margin-right: 2em;
    margin-top: 1em;
  }

  /* Footer */
  footer.footer {
    padding: 0 1em;
    bottom: 0;
    box-shadow: 0 -0.0625em 0.3125em rgba(0, 0, 0, 0.15);
    font-family: inherit;
    font-size: 0.9em;
  }

  /* Main content */
  .wrap_content {
    display: inline-block;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    padding: 6em 0.75em 4em;
    width: 100%;
  }
  .content {
    margin-right: 2em;
    margin-left: 1em;
    padding-left: 20%;
  }
  ul.action_bar, ul.version_list {
    margin: 0 0 5px;
    padding: 0;
    list-style: none;
    font-size: 1.2em;
  }
  ul.action_bar, ul.action_bar ul {
    display: inline-block;
    width: 100%;
  }
  ul.action_bar li, ul.action_bar ul li {
    float: left;
    margin-right: 0.5em;
  }
  ul.action_bar li:last-child, ul.action_bar ul li:last-child {
    margin-right: 0;
  }
  ul.action_bar ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  ul.action_bar li.languages {
    float: right;
  }
  ul.action_bar li.languages a {
    font-size: 0.9em;
  }
  .version_list_wrapper {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    border: solid 1px #cccccc;
    border-radius: <%= border_radius %>;
    margin: 2% 0;
  }
  ul.version_list {
    font-size: 1em;
    line-height: 1.5em;
  }
  li.splitter {
    width: 1px;
    border-left: 1px <%= grey %> solid;
    text-indent: -999999em;
  }
  .mail_description {
    margin-bottom: 2em;
  }
  .mail_deliver ul li {
    float: left;
    margin-right: 0.4em;
  }
  .mail_preview {
    height: 100%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    padding: 1em;
    border: solid 1px <%= grey %>;
    border-radius: <%= border_radius %>;
  }
  .mail_preview .mail_details {
    margin: 0 0 1em 0;
    padding: 0;
    color: <%= dark_grey %>;
    list-style: none;
    font-size: 0.9em;
  }
  .mail_preview .mail_details li {
    line-height: 1em;
  }
  .mail_preview .mail_attachments {
    padding: 1em 0 0 0;
    border-top: solid 1px <%= grey %>;
    color: <%= dark_grey %>;
    list-style: none;
    font-size: 0.9em;
  }
  .mail_preview .mail_attachments ul {
    display: inline-block;
    margin: 0;
    padding: 0;
    width: 100%;
    list-style: none;
  }
  .mail_preview .mail_attachments ul li {
    float: left;
    margin: 1em 1em 0 0;
  }
  .mail_preview iframe.mail_iframe {
    padding-top: 1em;
    border: none;
    border-top: solid 1px <%= grey %>;
    border-radius: <%= border_radius %>;
    min-height: 100px;
  }
  .welcome_message {
    margin-top: 3em;
    max-width: 80%;
  }
  .format_mail {
    position: relative;
    display: inline-block;
    float: right;
    margin: -2em 0 0 0;
    padding: 0;
    width: 6.5em;
    list-style: none;
  }
  .format_mail li {
    float: left;
  }
  .format_mail li a.format_selected {
    color: <%= hover_color %>;
    font-weight: bold;
  }
  .format_mail li + li {
    margin: 0 0 0 0.4em;
    padding: 0 0 0 0.4em;
    border-left: solid 1px <%= grey %>;
  }
  .mail_updatearea {
    position: relative;
    overflow: visible;
    min-height: 450px;
    width: 100%;
    height: 100%;
    border: none;
  }

  /* Sidebar */
  aside.sidebar {
    float: left;
    width: 20%;
    max-height: 90vh;
    overflow-y: scroll;
  }
  section.nav_list {
    margin: 0 0 1em 0em;
  }
  section.nav_list .nav_title {
    margin: 0 0 0.4em;
    font-weight: 400;
    font-size: 1.2em;
  }
  section.nav_list ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  section.nav_list ul li {
    margin-bottom: 0.4em;
    list-style: none;
  }
  section.nav_list a {
    text-decoration: none;
    font-size: 0.9em;
  }
  section.nav_list a.selected_mail, section.nav_list a:hover,
  .version_list a.selected_mail, .version_list a:hover {
    color: <%= hover_color %>;
    font-weight: bold;
  }

  /* Alert messages */
  .alert {
    border-radius: <%= border_radius %>;
    padding: 16px;
    margin-bottom: 1.1em;
    color: #ffffff;
    background-color: <%= dark_blue %>;
  }

  /* Icons */
  img.icon {
    width: 20px;
    font-size: 0.9em;
    vertical-align: bottom;
  }
</style>
